package lab01;

/**
 * Created by 李晓容 on 2017/10/9.
 */
public class Test11 {
    public static void main(String[] args) {
        int i;
        int j;
        int k=0;
        for (i=2;i<=100;i++){
            for (j=2;j<=i/2;j++){
                if (i%j==0){
                    break;
                }
            }if (j>i/2){
                k++;
                System.out.print(i+"  ");
                if (k%5==0)
                    System.out.println();
            }
        }
    }
}
